function cambioDiario(check){
    var cal=document.getElementById('form1:layoutPanel1:calendar2');
    var lab=document.getElementById('form1:layoutPanel1:label8');
    if (check==true){        
        cal.style.visibility='visible';
        lab.style.visibility='visible';
    }
    else{
        cal.style.visibility='hidden';
        lab.style.visibility='hidden';
    }
}